package com.tttshaoqi.common.utils;

import com.tttshaoqi.pojo.dto.EmployeeDTO;

public class EmpHolder {
    private static final ThreadLocal<EmployeeDTO> TL = new ThreadLocal<>();

    public static void saveEmp(EmployeeDTO emp){
        TL.set(emp);
    }

    public static EmployeeDTO getEmp(){
        return TL.get();
    }

    public static void removeEmp(){
        TL.remove();
    }
}



